﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020001E5 RID: 485
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChangeScriptEmotionCsReq : IMessage<ChangeScriptEmotionCsReq>, IMessage, IEquatable<ChangeScriptEmotionCsReq>, IDeepCloneable<ChangeScriptEmotionCsReq>, IBufferMessage
	{
		// Token: 0x17000665 RID: 1637
		// (get) Token: 0x060015F6 RID: 5622 RVA: 0x0003E7BB File Offset: 0x0003C9BB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChangeScriptEmotionCsReq> Parser
		{
			get
			{
				return ChangeScriptEmotionCsReq._parser;
			}
		}

		// Token: 0x17000666 RID: 1638
		// (get) Token: 0x060015F7 RID: 5623 RVA: 0x0003E7C2 File Offset: 0x0003C9C2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChangeScriptEmotionCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000667 RID: 1639
		// (get) Token: 0x060015F8 RID: 5624 RVA: 0x0003E7D4 File Offset: 0x0003C9D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChangeScriptEmotionCsReq.Descriptor;
			}
		}

		// Token: 0x060015F9 RID: 5625 RVA: 0x0003E7DB File Offset: 0x0003C9DB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChangeScriptEmotionCsReq()
		{
		}

		// Token: 0x060015FA RID: 5626 RVA: 0x0003E7E3 File Offset: 0x0003C9E3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChangeScriptEmotionCsReq(ChangeScriptEmotionCsReq other) : this()
		{
			this.scriptId_ = other.scriptId_;
			this.targetEmotionType_ = other.targetEmotionType_;
			this.eKJNIKMMFLE_ = other.eKJNIKMMFLE_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060015FB RID: 5627 RVA: 0x0003E820 File Offset: 0x0003CA20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChangeScriptEmotionCsReq Clone()
		{
			return new ChangeScriptEmotionCsReq(this);
		}

		// Token: 0x17000668 RID: 1640
		// (get) Token: 0x060015FC RID: 5628 RVA: 0x0003E828 File Offset: 0x0003CA28
		// (set) Token: 0x060015FD RID: 5629 RVA: 0x0003E830 File Offset: 0x0003CA30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ScriptId
		{
			get
			{
				return this.scriptId_;
			}
			set
			{
				this.scriptId_ = value;
			}
		}

		// Token: 0x17000669 RID: 1641
		// (get) Token: 0x060015FE RID: 5630 RVA: 0x0003E839 File Offset: 0x0003CA39
		// (set) Token: 0x060015FF RID: 5631 RVA: 0x0003E841 File Offset: 0x0003CA41
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HeartDialEmotionType TargetEmotionType
		{
			get
			{
				return this.targetEmotionType_;
			}
			set
			{
				this.targetEmotionType_ = value;
			}
		}

		// Token: 0x1700066A RID: 1642
		// (get) Token: 0x06001600 RID: 5632 RVA: 0x0003E84A File Offset: 0x0003CA4A
		// (set) Token: 0x06001601 RID: 5633 RVA: 0x0003E852 File Offset: 0x0003CA52
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EKJNIKMMFLE
		{
			get
			{
				return this.eKJNIKMMFLE_;
			}
			set
			{
				this.eKJNIKMMFLE_ = value;
			}
		}

		// Token: 0x06001602 RID: 5634 RVA: 0x0003E85B File Offset: 0x0003CA5B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChangeScriptEmotionCsReq);
		}

		// Token: 0x06001603 RID: 5635 RVA: 0x0003E86C File Offset: 0x0003CA6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChangeScriptEmotionCsReq other)
		{
			return other != null && (other == this || (this.ScriptId == other.ScriptId && this.TargetEmotionType == other.TargetEmotionType && this.EKJNIKMMFLE == other.EKJNIKMMFLE && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001604 RID: 5636 RVA: 0x0003E8C8 File Offset: 0x0003CAC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ScriptId != 0U)
			{
				num ^= this.ScriptId.GetHashCode();
			}
			if (this.TargetEmotionType != HeartDialEmotionType.Peace)
			{
				num ^= this.TargetEmotionType.GetHashCode();
			}
			if (this.EKJNIKMMFLE != 0U)
			{
				num ^= this.EKJNIKMMFLE.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001605 RID: 5637 RVA: 0x0003E93F File Offset: 0x0003CB3F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001606 RID: 5638 RVA: 0x0003E947 File Offset: 0x0003CB47
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001607 RID: 5639 RVA: 0x0003E950 File Offset: 0x0003CB50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.EKJNIKMMFLE != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.EKJNIKMMFLE);
			}
			if (this.TargetEmotionType != HeartDialEmotionType.Peace)
			{
				output.WriteRawTag(56);
				output.WriteEnum((int)this.TargetEmotionType);
			}
			if (this.ScriptId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.ScriptId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001608 RID: 5640 RVA: 0x0003E9C4 File Offset: 0x0003CBC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ScriptId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ScriptId);
			}
			if (this.TargetEmotionType != HeartDialEmotionType.Peace)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.TargetEmotionType);
			}
			if (this.EKJNIKMMFLE != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EKJNIKMMFLE);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001609 RID: 5641 RVA: 0x0003EA34 File Offset: 0x0003CC34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChangeScriptEmotionCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ScriptId != 0U)
			{
				this.ScriptId = other.ScriptId;
			}
			if (other.TargetEmotionType != HeartDialEmotionType.Peace)
			{
				this.TargetEmotionType = other.TargetEmotionType;
			}
			if (other.EKJNIKMMFLE != 0U)
			{
				this.EKJNIKMMFLE = other.EKJNIKMMFLE;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600160A RID: 5642 RVA: 0x0003EA98 File Offset: 0x0003CC98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600160B RID: 5643 RVA: 0x0003EAA4 File Offset: 0x0003CCA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 56U)
					{
						if (num != 72U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.ScriptId = input.ReadUInt32();
						}
					}
					else
					{
						this.TargetEmotionType = (HeartDialEmotionType)input.ReadEnum();
					}
				}
				else
				{
					this.EKJNIKMMFLE = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04000907 RID: 2311
		private static readonly MessageParser<ChangeScriptEmotionCsReq> _parser = new MessageParser<ChangeScriptEmotionCsReq>(() => new ChangeScriptEmotionCsReq());

		// Token: 0x04000908 RID: 2312
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000909 RID: 2313
		public const int ScriptIdFieldNumber = 9;

		// Token: 0x0400090A RID: 2314
		private uint scriptId_;

		// Token: 0x0400090B RID: 2315
		public const int TargetEmotionTypeFieldNumber = 7;

		// Token: 0x0400090C RID: 2316
		private HeartDialEmotionType targetEmotionType_;

		// Token: 0x0400090D RID: 2317
		public const int EKJNIKMMFLEFieldNumber = 1;

		// Token: 0x0400090E RID: 2318
		private uint eKJNIKMMFLE_;
	}
}
